import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MesTypeComponent} from './mes-type.component';

const routes: Routes = [
    {
        path: '', component: MesTypeComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mes-type/add-mes-type.module#AddMesTypeModule'},
            {path: 'list', loadChildren: './list-mes-type/list-mes-type.module#ListMesTypeModule'},
            {path: 'modify', loadChildren: './modify-mes-type/modify-mes-type.module#ModifyMesTypeModule'},
            {path: 'report', loadChildren: './report-mes-type/report-mes-type.module#ReportMesTypeModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MesTypeRoutingModule {
}
